package com.gpframework.module.base.domain.req;

import com.gpframework.module.base.domain.BaseStoreConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @ClassName BaseStoreConfigAdd
 * @Author gpframework
 * @Date 2022-04-06
 * @Version 1.0.0
 * @Description 店铺基础配置（折扣、手续费等）Add对象
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
public class BaseStoreConfigAdd {
    private static final long serialVersionUID = 1L;

    /**
     * 父id
     */
    @ApiModelProperty("父id")
    private Long pid;

    /**
     * 业务标识
     */
    @ApiModelProperty("业务标识")
    private String groupKey;

    /**
     * 内容
     */
    @ApiModelProperty("内容")
    private String content;

    /**
     * 输入类型;手动输入、选择框
     */
    @ApiModelProperty("输入类型;手动输入、选择框")
    private String inputType;

    /**
     * 选项的值
     */
    @ApiModelProperty("选项的值")
    private String value;

    /**
     * 是否是最后一级
     */
    @ApiModelProperty(value = "是否是最后一级", required = true)
    @NotBlank(message = "请输入是否是最后一级")
    private String isLastLevel;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long sort;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remarks;

    /**
     * 子集
     */
    @ApiModelProperty("子集")
    private List<BaseStoreConfig> children;

}
